home *** CD-ROM | disk | FTP | other *** search
- Scroller Plug-In
- A plug in extension for Netscape Navigator 2.0
- ©1996 Andy Marder
- Portions of the program © Netscape and Metrowerks
-
- •DESCRIPTION•
- This plug in lets you add scrolling text to your web page.
- It can run on 68K and on PPC Macs
-
- •BACKGROUND•.
- Netscape Navigator 2.0 uses plug-in architecture to deal with MIME types
- it doesn't know about. When Netscape Navigator 2.0 encounters an unknown MIME
- type in the data stream it searches its Plug-Ins folder to see if there's a
- plug-in that understands this particular MIME type. If the plug-in is found,
- Netscape loads it and lets it deal with the data from the stream.
-
- HOW TO USE:
- 1) Put Scroller into Netscape Navigator 2.0 Plug-Ins folder
- 2) Type some text that you want to scroll and save it.
- The text file name should have the following format : "YOUR_FILE_NAME.scrl" and
- has to be in the same directory as the HTML code for your web page.
- 3) In the HTML code for your web page add the the following line:
-
- <EMBED SRC="YOUR_FILE_NAME.scrl" ALIGN=CENTER WIDTH=300 HEIGHT=70><P>
-
- This will tell Netscape to put the text in a rectangle 300 pixels wide and 70 pixels high.
- You can change the width and height to suit your needs.
-
- 4) SETTING FONT, FONT SIZE, STYLE AND COLOR OF THE TEXT TO BE SCROLLED
- Since Netscape doesn't know anything about
- the MIME type "scrl" it hands all the formatting, style and color, to the plug-in, so
- you'll have to provide this info to the plug-in yourself.
-
- IMPORTANT!!!!
- ••The first 9 characters of the text you want to scroll MUST have the following info:
-
- •Character 1,2 : FONT SIZE
- •CHARACTER 3,4: STYLE
- •CHARACTER 5,6,7: COLOR
- •CHARACTER 8,9: FONT
-
- Below is the list of numeric codes and their descriptions:
-
- •FONT SIZE•
-
- Size of the font in typographic points - 50 max;
- ******************************************************
- •STYLE•
-
- BOLD: 1
- ITALIC: 2
- UNDERLINE: 4
- OUTLINE: 8
- SHADOW: 16
- CONDENSE: 32
- EXTEND: 64
-
- You can combine the styles, like so: BOLDITALIC= 1+2 = 3
-
- ***************
- •COLOR•
-
- BLACK: 33
- WHITE: 30
- RED: 205
- GREEN: 341
- BLUE: 409
- CYAN: 273
- MAGENTA: 137
- YELLOW: 69
-
- **************
-
- •FONT•
-
- Since there's no way of knowing what font a user might have on
- their system, the plug-in understands only basic Macintosh system fonts
-
- SYSTEM FONT (CHICAGO): 0
- APPLICATION DEFAULT FONT :1
- NEW YORK : 2
- GENEVA: 3
- MONACO: 4
- TIMES : 20
- HELVETICA: 21
- COURIER: 22
- SYMBOL: 23
-
- If the font that you specified is not found on a user's system the system default
- font will be displayed.
-
- *******************************************************************************
-
- If you're entering a one-digit number, MAKE SURE to prepend it with a zero, like
- this: 03 - in the style field will produce bold-italic
- ******************************************************************************
-
- EXAMPLE:
- 120820501THIS IS A SAMPLE OF A NEVER-ENDING SCROLLING TEXT.
-
- This will set the font size to 12, style to outline (08), color to red (205) and font to
- application default font(01).
-
- ****************************************************************
- GOTCHAS
- 1)
- If there's too much text to display or the font size is too large,
- the plug in may run out of memory.
- In this case, the plug-in will return an error to Netscape and
- no text will appear. Experiment with various combinations of text length,
- size and style.
- Also, keep in mind that a user may not have the font you've chosen on their
- system - in this case a system font (Chicago) will be used.
- ALWAYS TEST YOUR TEXT WITH CHICAGO!!
- 2) If you have, say, 3 different scrolling messages on your page, you'll get
- the first one displayed 3 times.
- At this point I don't know if this is my bug or Netscape's.
- The sample that I used to write Scroller has the same problem.
- ***************************************************************
- PRICE TO PAY
- This code is a shareware.
- If you like it and use it, please send $10 to:
- Andrew Marder.
- 9763 Caminito Doha
- San Diego CA 92131
- ****************************
- ACKNOWLEDGEMENTS:
- Many, many, many thanks to:
- Erik, Brady, Alan,Armand.
- ****************************
- QUESTIOINS,COMMENTS, FEEDBACK:
- amarder@netmanage.com or AndyM96@aol.com
-
-
-
-
-
-